<div id="admin_rights" class="admin_rights_div">
	<div class="admin_rights_title_div">
		<h1><?php echo ST_FORM_RIGHT_ADMINISTRATION ?></h1>
	</div>
	<div class="admin_rights_list_div">
		<form id="admin_rights_form" action="index.php?section=admin&action=rights" method="post">
			<table class="admin_rights_list_table">
				<thead>
					<tr>
						<th></th>
						<th><?php echo ST_FORM_ID ?></th>
						<th><?php echo ST_FORM_NAME ?></th>
						<th>Beschreibung</th>
					</tr>
				</thead>
				<tbody>
					<?php 
						foreach ($admin_sub_data['rights'] as $right) {
							echo '<tr>';
								if ($right->get_name() !== 'admin' and $right->get_name() !== 'all')
									echo '<td><input type="checkbox" class="admin_right_list_checkbox" value="'.$right->get_id().'" name="rightselection[]"></td>';
								else
									echo '<td></td>';
								echo '<td>'.$right->get_id().'</td>';
								echo '<td>'.$right->get_name().'</td>';
								echo '<td>'.$right->get_description().'</td>';
							echo '</tr>';
						}
					?>
				</tbody>
			</table>
			<div class="admin_rights_form_buttons">
				<a id="create_new_right" class="create_new_right_button"><?php echo ST_FORM_NEW_ACTION ?></a> -
				<a id="select_all_rights" class="select_all_rights_button"><?php echo ST_FORM_SELECT_ALL_ACTION ?></a> - 
				<a id="delete_selected_rights" class="delete_selected_rights_button"><?php echo ST_FORM_DELETE_SELECTED_ACTION ?></a>
			</div>
		</form>
	</div>
</div>